home *** CD-ROM | disk | FTP | other *** search
- on enterFrame
- global gBackgroundSound, gBackgroundVolume
- set the volume of sound 2 to gBackgroundVolume
- if soundBusy(2) = 0 then
- sound playFile 2, getpn() & "Sounds:Bckgrd" & gBackgroundSound & ".aif"
- end if
- end
-
- on exitFrame
- go(the frame)
- end
-
- on idle
- global gMemorySize
- StudioSoundChange()
- JukeBoxFragments()
- RolloverCursor()
- VideoBalloons()
- ScrollRoutine()
- if the mouseV < 50 then
- set the visible of sprite 48 to 1
- end if
- if the mouseV > 50 then
- set the visible of sprite 48 to 0
- end if
- preLoadStudioPics()
- testOutCasts()
- end
-
- on StudioSoundChange
- if (rollOver(16) = 0) and (rollOver(17) = 0) then
- if the windowList = [] then
- nothing()
- else
- stopStdSound()
- end if
- end if
- end
-
- on JukeBoxFragments
- global gFragment1, gFragment2, gFragment3, gFragment4
- set MBNumber to the number of cast "Fragment 1"
- if rollOver(21) then
- if gFragment1 = 0 then
- set the castNum of sprite 21 to MBNumber
- end if
- end if
- if rollOver(20) then
- if gFragment2 = 0 then
- set the castNum of sprite 20 to MBNumber + 1
- end if
- end if
- end
-
- on RolloverCursor
- repeat with i = 10 to 17
- if rollOver(i) = 1 then
- cursor([cast "Hotspot", cast "Hotspot Mask"])
- exit
- next repeat
- end if
- set HotspotCursor to 0
- end repeat
- repeat with i = 22 to 26
- if rollOver(i) = 1 then
- cursor([cast "Hotspot", cast "Hotspot Mask"])
- exit
- next repeat
- end if
- set HotspotCursor to 0
- end repeat
- if rollOver(8) then
- cursor([cast "Volume Down"])
- end if
- if rollOver(9) then
- cursor([cast "Volume Up"])
- end if
- if rollOver(8) = 0 then
- if rollOver(9) = 0 then
- if the mouseH < 621 then
- if the mouseH > 20 then
- if HotspotCursor = 0 then
- cursor(-1)
- set HotspotCursor to 1
- end if
- end if
- end if
- end if
- end if
- updateStage()
- end
-
- on VideoBalloons
- repeat with i = 2 to 7
- if rollOver(i) then
- set the visible of sprite (i + 28) to 1
- end if
- if (rollOver(i) = 0) or (mouseV() > 350) then
- set the visible of sprite (i + 28) to 0
- end if
- end repeat
- end
-
- on ScrollRoutine
- if (the mouseH > 620) or (the mouseH < 21) then
- repeat with i = 2 to 7
- set the visible of sprite (i + 28) to 0
- end repeat
- if not (the windowList) = [] then
- forget(window "stdsound.dir")
- end if
- repeat while the mouseH > 620
- cursor([cast "Arrow Right", cast "Arrow Right Mask"])
- rightTurnDelete()
- puppetSprite(1, 1)
- if the castNum of sprite 1 > 29 then
- set the castNum of sprite 1 to 1
- else
- set the castNum of sprite 1 to the castNum of sprite 1 + 1
- end if
- updateStage()
- end repeat
- repeat while the mouseH < 21
- cursor([cast "Arrow Left", cast "Arrow Left Mask"])
- leftTurnDelete()
- puppetSprite(1, 1)
- if the castNum of sprite 1 < 2 then
- set the castNum of sprite 1 to 30
- else
- set the castNum of sprite 1 to the castNum of sprite 1 - 1
- end if
- updateStage()
- end repeat
- set WhichStudio to string(the castNum of sprite 1)
- if WhichStudio = "1" then
- set WhichStudio to "Studio"
- end if
- if WhichStudio = "30" then
- set WhichStudio to "Studio End"
- end if
- go(WhichStudio)
- repeat with i = 2 to 7
- set the visible of sprite (i + 28) to 0
- end repeat
- updateStage()
- puppetSprite(1, 0)
- end if
- end
-